<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="google-site-verification" content="xBT4GhYoi5qRD5tr338pgPM5OWHHIDR6mNg1a3euekI" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="智红的博客">
    <meta name="keyword"  content="智红">
    <link rel="shortcut icon" href="/img/favicon.ico">

    <title>
        
        ubuntu安装后需要做的事情 - 智红的博客
        
    </title>

    <!-- Custom CSS -->
    
<link rel="stylesheet" href="/css/aircloud.css">

    
<link rel="stylesheet" href="/css/gitment.css">

    <!--<link rel="stylesheet" href="https://imsun.github.io/gitment/style/default.css">-->
    <link href="//at.alicdn.com/t/font_620856_pl6z7sid89qkt9.css" rel="stylesheet" type="text/css">
    <!-- ga & ba script hoook -->
    <script></script>
<meta name="generator" content="Hexo 5.3.0"></head>

<body>

<div class="site-nav-toggle" id="site-nav-toggle">
    <button>
        <span class="btn-bar"></span>
        <span class="btn-bar"></span>
        <span class="btn-bar"></span>
    </button>
</div>

<div class="index-about">
    <i> 好记性不如烂键盘呐 </i>
</div>

<div class="index-container">
    
    <div class="index-left">
        
<div class="nav" id="nav">
    <div class="avatar-name">
        <div class="avatar ">
            <img src="/img/avatar.jpg" />
        </div>
        <div class="name">
            <i>Zhihong Li</i>
        </div>
    </div>
    <div class="contents" id="nav-content">
        <ul>
            <li >
                <a href="/">
                    <i class="iconfont icon-shouye1"></i>
                    <span>主页</span>
                </a>
            </li>
            <li >
                <a href="/tags">
                    <i class="iconfont icon-biaoqian1"></i>
                    <span>标签</span>
                </a>
            </li>
            <li >
                <a href="/archive">
                    <i class="iconfont icon-guidang2"></i>
                    <span>存档</span>
                </a>
            </li>
            <li >
                <a href="/about/">
                    <i class="iconfont icon-guanyu2"></i>
                    <span>关于</span>
                </a>
            </li>
            
            <li>
                <a id="search">
                    <i class="iconfont icon-sousuo1"></i>
                    <span>搜索</span>
                </a>
            </li>
            
        </ul>
    </div>
    
        <div id="toc" class="toc-article">
    <ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#%E5%AE%89%E8%A3%85ubuntu%E5%90%8E%E5%81%9A%E7%9A%84%E4%BA%8B%E6%83%85"><span class="toc-text">安装ubuntu后做的事情</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%88%A0%E9%99%A4%E4%B8%8D%E5%BF%85%E8%A6%81%E7%9A%84%E8%BD%AF%E4%BB%B6"><span class="toc-text">删除不必要的软件</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%BF%AE%E6%94%B9%E8%BD%AF%E4%BB%B6%E6%BA%90%E4%B8%BAaliyun"><span class="toc-text">修改软件源为aliyun</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E8%87%AA%E5%AE%9A%E4%B9%89DHCP%E7%BD%91%E7%BB%9C%E7%9A%84DNS-Server-IP%E5%9C%B0%E5%9D%80"><span class="toc-text">自定义DHCP网络的DNS Server IP地址</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#up-sh"><span class="toc-text">~&#x2F;up.sh</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%BA%A4%E6%8D%A2Caps-Lock%E5%92%8CEscape%E9%94%AE"><span class="toc-text">交换Caps_Lock和Escape键</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AE%89%E8%A3%85%E9%9C%80%E8%A6%81%E7%9A%84%E8%BD%AF%E4%BB%B6"><span class="toc-text">安装需要的软件</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AE%89%E8%A3%85typora"><span class="toc-text">安装typora</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AE%89%E8%A3%85shutter"><span class="toc-text">安装shutter</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AE%89%E8%A3%85albert"><span class="toc-text">安装albert</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AE%89%E8%A3%85vim8"><span class="toc-text">安装vim8</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AE%89%E8%A3%85neovim"><span class="toc-text">安装neovim</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E9%80%89%E8%A3%85"><span class="toc-text">选装</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85WPS"><span class="toc-text">安装WPS</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%81%AB%E7%8B%90%E5%AE%89%E8%A3%85%E6%8F%92%E4%BB%B6"><span class="toc-text">火狐安装插件</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#vim-neovim%E9%85%8D%E7%BD%AE-vimrc%E4%B8%8E%E6%8F%92%E4%BB%B6%E5%AE%89%E8%A3%85"><span class="toc-text">vim&#x2F;neovim配置.vimrc与插件安装</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85%E7%BB%8F%E5%85%B8%E8%8F%9C%E5%8D%95%E6%8C%87%E7%A4%BA%E5%99%A8"><span class="toc-text">安装经典菜单指示器</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85%E7%B3%BB%E7%BB%9F%E6%8C%87%E7%A4%BA%E5%99%A8SysPeek"><span class="toc-text">安装系统指示器SysPeek</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85%E7%BD%91%E9%A1%B5flashplayer"><span class="toc-text">安装网页flashplayer</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%B3%BB%E7%BB%9F%E8%AE%BE%E7%BD%AE%E2%80%94%E2%80%94%E5%A4%96%E8%A7%82%E2%80%94%E2%80%94%E8%A1%8C%E4%B8%BA%E2%80%94%E2%80%94%E5%BC%80%E5%90%AF%E5%B7%A5%E4%BD%9C%E5%8C%BA-amp-%E6%B7%BB%E5%8A%A0%E2%80%9C%E6%98%BE%E7%A4%BA%E6%A1%8C%E9%9D%A2%E2%80%9D%E5%9B%BE%E6%A0%87%E5%88%B0%E5%90%AF%E5%8A%A8%E5%99%A8"><span class="toc-text">系统设置——外观——行为——开启工作区 &amp; 添加“显示桌面”图标到启动器</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%BB%A3%E7%90%86"><span class="toc-text">代理</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%BB%88%E7%AB%AF%E6%95%88%E7%8E%87"><span class="toc-text">终端效率</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#python"><span class="toc-text">python</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#ubuntu16-04%E5%92%8Cwin%E6%97%B6%E9%97%B4%E4%B8%8D%E5%90%8C%E6%AD%A5"><span class="toc-text">ubuntu16.04和win时间不同步</span></a></li></ol></li></ol>
</div>
    
</div>


<div class="search-field" id="search-field">
    <div class="search-container">
        <div class="search-input">
            <span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
            <input id="search-input"/>
            <span id="begin-search">搜索</span>
        </div>
        <div class="search-result-container" id="search-result-container">

        </div>
    </div>
</div>

        <div class="index-about-mobile">
            <i> 好记性不如烂键盘呐 </i>
        </div>
    </div>
    
    <div class="index-middle">
        <!-- Main Content -->
        


<div class="post-container">
    <div class="post-title">
        ubuntu安装后需要做的事情
    </div>

    <div class="post-meta">
        <span class="attr">发布于：<span>2020-08-19 03:04:00</span></span>
        
        <span class="attr">标签：/
        
        <a class="tag" href="/tags/#ubuntu" title="ubuntu">ubuntu</a>
        <span>/</span>
        
        
        </span>
        <span class="attr">访问：<span id="busuanzi_value_page_pv"></span>
</span>
</span>
    </div>
    <div class="post-content no-indent">
        <h1 id="安装ubuntu后做的事情"><a href="#安装ubuntu后做的事情" class="headerlink" title="安装ubuntu后做的事情"></a>安装ubuntu后做的事情</h1><h2 id="删除不必要的软件"><a href="#删除不必要的软件" class="headerlink" title="删除不必要的软件"></a>删除不必要的软件</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get remove libreoffice-common unity-webapps-common thunderbird totem rhythmbox empathy brasero simple-scan gnome-mahjongg aisleriot gnome-mines cheese transmission-common gnome-orca webbrowser-app gnome-sudoku landscape-client-ui-install onboard deja-dup</span><br></pre></td></tr></table></figure>
<h2 id="修改软件源为aliyun"><a href="#修改软件源为aliyun" class="headerlink" title="修改软件源为aliyun"></a>修改软件源为aliyun</h2><h2 id="自定义DHCP网络的DNS-Server-IP地址"><a href="#自定义DHCP网络的DNS-Server-IP地址" class="headerlink" title="自定义DHCP网络的DNS Server IP地址"></a>自定义DHCP网络的DNS Server IP地址</h2><p>sudo vi /etc/dhcp/dhclient.conf 文件，在第21行#prepend domain-name-servers 127.0.0.1;下一行添加如下2行使用aliyun和114的DNS</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">prepend domain-name-servers 114.114.114.114;</span><br><span class="line">prepend domain-name-servers 223.5.5.5;</span><br></pre></td></tr></table></figure>
<p>这样可以优先使用aliyun的dns，次要使用114的DNS。</p>
<h2 id="up-sh"><a href="#up-sh" class="headerlink" title="~/up.sh"></a>~/up.sh</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#!/bin/bash</span></span><br><span class="line"></span><br><span class="line">apt-get update</span><br><span class="line">apt-get upgrade</span><br><span class="line">apt-get dist-upgrade</span><br><span class="line"></span><br><span class="line">apt-get autoremove</span><br><span class="line"></span><br><span class="line"><span class="comment">#方法一、如果你知道要删除软件的具体名称，可以使用</span></span><br><span class="line"><span class="comment">#sudo apt-get remove --purge 软件名称</span></span><br><span class="line"><span class="comment">#sudo apt-get autoremove --purge 软件名称</span></span><br><span class="line"></span><br><span class="line"><span class="comment">#方法二、如果不知道要删除软件的具体名称，可以使用</span></span><br><span class="line"><span class="comment">#dpkg --get-selections | grep &#x27;软件相关名称&#x27;</span></span><br><span class="line"><span class="comment">#sudo apt-get purge 一个带core的package，如果没有带core的package，则是情况而定。</span></span><br><span class="line"></span><br><span class="line"><span class="comment">#清理残留数据</span></span><br><span class="line"><span class="comment">#dpkg -l |grep ^rc|awk &#x27;&#123;print $2&#125;&#x27; |sudo xargs dpkg -P</span></span><br><span class="line"></span><br><span class="line"><span class="comment">#apt-get的卸载相关的命令有remove/purge/autoremove/clean/autoclean等。具体来说：</span></span><br><span class="line"></span><br><span class="line"><span class="comment">#apt-get purge / apt-get --purge remove</span></span><br><span class="line"><span class="comment">#删除已安装包（不保留配置文件)。</span></span><br><span class="line"><span class="comment">#如软件包a，依赖软件包b，则执行该命令会删除a，而且不保留配置文件</span></span><br><span class="line"></span><br><span class="line"><span class="comment">#apt-get autoremove</span></span><br><span class="line"><span class="comment">#删除为了满足依赖而安装的，但现在不再需要的软件包（包括已安装包），保留配置文件。</span></span><br><span class="line"></span><br><span class="line"><span class="comment">#apt-get remove</span></span><br><span class="line"><span class="comment">#删除已安装的软件包（保留配置文件），不会删除依赖软件包，且保留配置文件。</span></span><br><span class="line"></span><br><span class="line">apt-get autoclean</span><br><span class="line"><span class="comment">#APT的底层包是dpkg, 而dpkg 安装Package时, 会将 *.deb 放在 /var/cache/apt/archives/中，apt-get autoclean 只会删除 /var/cache/apt/archives/ 已经过期的deb。</span></span><br><span class="line"></span><br><span class="line"><span class="comment">#apt-get clean</span></span><br><span class="line"><span class="comment">#使用 apt-get clean 会将 /var/cache/apt/archives/ 的 所有 deb 删掉，可以理解为 rm /var/cache/apt/archives/*.deb。</span></span><br><span class="line"></span><br><span class="line"><span class="comment">######################</span></span><br><span class="line"><span class="comment">#那么如何彻底卸载软件呢？</span></span><br><span class="line"><span class="comment"># 删除软件及其配置文件</span></span><br><span class="line"><span class="comment">#apt-get --purge remove &lt;package&gt;</span></span><br><span class="line"><span class="comment"># 删除没用的依赖包</span></span><br><span class="line"><span class="comment">#apt-get autoremove &lt;package&gt;</span></span><br><span class="line"><span class="comment"># 此时dpkg的列表中有“rc”状态的软件包，可以执行如下命令做最后清理：</span></span><br><span class="line"><span class="comment">#dpkg -l |grep ^rc|awk &#x27;&#123;print $2&#125;&#x27; |sudo xargs dpkg -P</span></span><br><span class="line"><span class="comment">#当然如果要删除暂存的软件安装包，也可以再使用clean命令。</span></span><br><span class="line"><span class="comment">######################</span></span><br></pre></td></tr></table></figure>
<h2 id="交换Caps-Lock和Escape键"><a href="#交换Caps-Lock和Escape键" class="headerlink" title="交换Caps_Lock和Escape键"></a><a target="_blank" rel="noopener" href="https://askubuntu.com/questions/363346/how-to-permanently-switch-caps-lock-and-esc">交换Caps_Lock和Escape键</a></h2><p>方法1：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">dconf write /org/gnome/desktop/input-sources/xkb-options <span class="string">&quot;[&#x27;caps:escape&#x27;]&quot;</span></span><br></pre></td></tr></table></figure>
<p>方法2:</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">gsettings <span class="built_in">set</span> org.gnome.desktop.input-sources xkb-options <span class="string">&quot;[&#x27;caps:escape&#x27;]&quot;</span></span><br></pre></td></tr></table></figure>
<p>方法3:<br><a target="_blank" rel="noopener" href="https://www.cnblogs.com/yu-tao/p/8405528.html">ubuntu下交换Caps_Lock和Escape键的方法</a></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get install dconf-tools</span><br><span class="line">dconf-editor</span><br></pre></td></tr></table></figure>
<p><code>org &gt;&gt; gnome &gt;&gt; desktop &gt;&gt; input-sources</code> 修改xkb-options为<code>[&#39;caps:swapescape&#39;]</code></p>
<h2 id="安装需要的软件"><a href="#安装需要的软件" class="headerlink" title="安装需要的软件"></a>安装需要的软件</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get install vpnc git axel openssh-server exfat-fuse unrar unace rar zip unzip p7zip-full silversearcher-ag ctags exuberant-ctags tmux autojump curl jq sshpass net-tools scrot fzf</span><br></pre></td></tr></table></figure>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get install g++ libncurses5-dev zlib1g-dev bison flex unzip autoconf gawk make gettext gcc binutils patch bzip2 libz-dev asciidoc subversion libssl-dev</span><br></pre></td></tr></table></figure>
<h2 id="安装typora"><a href="#安装typora" class="headerlink" title="安装typora"></a>安装<a target="_blank" rel="noopener" href="https://www.typora.io/#linux">typora</a></h2><h2 id="安装shutter"><a href="#安装shutter" class="headerlink" title="安装shutter"></a>安装shutter</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">sudo add-apt-repository ppa:linuxuprising/shutter</span><br><span class="line">sudo apt-get update</span><br><span class="line">sudo apt-get install shutter</span><br></pre></td></tr></table></figure>
<h2 id="安装albert"><a href="#安装albert" class="headerlink" title="安装albert"></a>安装<a target="_blank" rel="noopener" href="https://software.opensuse.org/download.html?project=home:manuelschneid3r&package=albert">albert</a></h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo dpkg -i albert_0.16.1_amd64.deb</span><br><span class="line">sudo apt-get install -f</span><br></pre></td></tr></table></figure>
<h2 id="安装vim8"><a href="#安装vim8" class="headerlink" title="安装vim8"></a>安装vim8</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">vim --version <span class="comment">#如果已经是vim8那就跳#如果已经是vim8那就跳过此步</span></span><br><span class="line">sudo apt-get install vim</span><br></pre></td></tr></table></figure>
<h2 id="安装neovim"><a href="#安装neovim" class="headerlink" title="安装neovim"></a>安装<a target="_blank" rel="noopener" href="https://github.com/neovim/neovim/wiki/Installing-Neovim">neovim</a></h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get install neovim</span><br></pre></td></tr></table></figure>
<hr>
<h2 id="选装"><a href="#选装" class="headerlink" title="选装"></a>选装</h2><h3 id="安装WPS"><a href="#安装WPS" class="headerlink" title="安装WPS"></a>安装WPS</h3><p>先到wps官网上下载wps的deb包。<a target="_blank" rel="noopener" href="http://www.wps.cn/product/">http://www.wps.cn/product/</a></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo dpkg -i wps-office_11.1.0.8722_amd64.deb</span><br></pre></td></tr></table></figure>
<p>解决字体冲突</p>
<p>下载symbol－fonts.deb<a target="_blank" rel="noopener" href="http://pan.baidu.com/s/1dDxL7d3">点击去下载</a>并安装</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo dpkg -i symbol－fonts_1.1_all.deb</span><br></pre></td></tr></table></figure>
<h3 id="火狐安装插件"><a href="#火狐安装插件" class="headerlink" title="火狐安装插件"></a>火狐安装插件</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">Tampermonkey(有些脚本在Greasemonkey无法运行)</span><br><span class="line">    AC-baidu:重定向优化百度搜狗谷歌必应搜索_favicon_双列</span><br><span class="line">    【玩的嗨】VIP工具箱,全网VIP视频免费破解去广告,一站式音乐搜索下载,获取B站封面,下载B站视频,上学吧答案获取等众多功能聚合</span><br><span class="line">    百度网盘直链满速下载助手</span><br><span class="line">    网盘自动填写访问码【威力加强版】</span><br><span class="line">    豆瓣资源下载大师：1秒搞定豆瓣电影|音乐|图书下载</span><br><span class="line">    持续更新 CSDN广告完全过滤、人性化脚本优化：不用再登录了！让你体验令人惊喜的崭新CSDN</span><br><span class="line">购物党实时比价工具(浏览器57以上版本安装)</span><br><span class="line">Adblock Plus - 免费的广告拦截器</span><br><span class="line">Vedio Speed Controller</span><br><span class="line">Vimium C 全键盘操作浏览器</span><br><span class="line">划词翻译  有道</span><br><span class="line">京价保 - 京东价保助手</span><br><span class="line">Video Downloader Pro  免费视频下载器</span><br><span class="line">网页截图</span><br><span class="line">Gesturefy  鼠标手势操作</span><br><span class="line">markdown-clipper 网页保存为markdown</span><br></pre></td></tr></table></figure>

<h3 id="vim-neovim配置-vimrc与插件安装"><a href="#vim-neovim配置-vimrc与插件安装" class="headerlink" title="vim/neovim配置.vimrc与插件安装"></a><a target="_blank" rel="noopener" href="https://github.com/humble-zh/myvim">vim/neovim配置.vimrc与插件安装</a></h3><h3 id="安装经典菜单指示器"><a href="#安装经典菜单指示器" class="headerlink" title="安装经典菜单指示器"></a>安装经典菜单指示器</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">sudo add-apt-repository ppa:diesch/testing</span><br><span class="line">sudo apt-get update</span><br><span class="line">sudo apt-get install classicmenu-indicator</span><br></pre></td></tr></table></figure>
<h3 id="安装系统指示器SysPeek"><a href="#安装系统指示器SysPeek" class="headerlink" title="安装系统指示器SysPeek"></a>安装系统指示器SysPeek</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">sudo add-apt-repository ppa:nilarimogard/webupd8</span><br><span class="line">sudo apt-get update</span><br><span class="line">sudo apt-get install syspeek</span><br></pre></td></tr></table></figure>
<h3 id="安装网页flashplayer"><a href="#安装网页flashplayer" class="headerlink" title="安装网页flashplayer"></a>安装网页flashplayer</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get install flashplugin-installer</span><br></pre></td></tr></table></figure>
<h3 id="系统设置——外观——行为——开启工作区-amp-添加“显示桌面”图标到启动器"><a href="#系统设置——外观——行为——开启工作区-amp-添加“显示桌面”图标到启动器" class="headerlink" title="系统设置——外观——行为——开启工作区 &amp; 添加“显示桌面”图标到启动器"></a>系统设置——外观——行为——开启工作区 &amp; 添加“显示桌面”图标到启动器</h3><h3 id="代理"><a href="#代理" class="headerlink" title="代理"></a>代理</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">#sudo apt-get install software-properties-common -y</span></span><br><span class="line"><span class="comment">#sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev -y</span></span><br><span class="line"><span class="comment">#sudo apt-get update</span></span><br><span class="line">sudo apt install shadowsocks-libev</span><br><span class="line">sudo vi /etc/shadowsocks-libev/v2ray.conf</span><br><span class="line"></span><br><span class="line">sudo apt-get install proxychains</span><br><span class="line">sudo vi /etc/proxychains.conf <span class="comment">#改为 socks5 	127.0.0.1 1080</span></span><br><span class="line"></span><br><span class="line"><span class="function"><span class="title">oyvpn</span></span>()&#123;</span><br><span class="line">    pidof ss-local &amp;&amp; &#123; <span class="built_in">echo</span> <span class="string">&quot;oyvpn is aready runing&quot;</span>; <span class="built_in">return</span>; &#125;</span><br><span class="line">    nohup ss-local -c /etc/shadowsocks-libev/v2ray.conf &amp;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<h3 id="终端效率"><a href="#终端效率" class="headerlink" title="终端效率"></a>终端效率</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get install i3</span><br><span class="line">sudo apt-get install pcmanfm</span><br><span class="line"><span class="comment"># 注销，选i3，重新登陆</span></span><br><span class="line"><span class="built_in">cd</span> $(blogdir)</span><br><span class="line">mv ~/.config/i3/config ~/.config/i3/config.bak</span><br><span class="line">ln -s $(<span class="built_in">pwd</span>)/<span class="built_in">source</span>/_posts/ubuntu安装后需要做的事情/config ~/.config/i3/config</span><br><span class="line">sudo mv /etc/i3status.conf /etc/i3status.conf.bak</span><br><span class="line">sudo ln -s $(<span class="built_in">pwd</span>)/<span class="built_in">source</span>/_posts/ubuntu安装后需要做的事情/i3status.conf /etc/i3status.conf</span><br></pre></td></tr></table></figure>
<p><a target="_blank" rel="noopener" href="https://ohmyz.sh/">on-my-zsh</a></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get install zsh git</span><br><span class="line"><span class="comment"># chsh -s /bin/zsh</span></span><br><span class="line">sh -c <span class="string">&quot;<span class="subst">$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)</span>&quot;</span></span><br><span class="line"><span class="built_in">cd</span> $(blogdir)</span><br><span class="line">mv ~/.zshrc ~/.zshrc.bak</span><br><span class="line">ln -s $(<span class="built_in">pwd</span>)/<span class="built_in">source</span>/_posts/ubuntu安装后需要做的事情/zshrc ~/.zshrc</span><br></pre></td></tr></table></figure>
<p>如果出现 <code>Failed to connect to raw.githubusercontent.com port 443: Connection refused</code> ,就在/etc/hosts文件追加</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">199.232.28.133 raw.githubusercontent.com</span><br></pre></td></tr></table></figure>
<p><a target="_blank" rel="noopener" href="https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md">zsh-syntax-highlighting</a></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">git <span class="built_in">clone</span> https://github.com/zsh-users/zsh-syntax-highlighting.git <span class="variable">$&#123;ZSH_CUSTOM:-~/.oh-my-zsh/custom&#125;</span>/plugins/zsh-syntax-highlighting</span><br></pre></td></tr></table></figure>
<p><a target="_blank" rel="noopener" href="https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md#oh-my-zsh">zsh-autosuggestions</a></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">git <span class="built_in">clone</span> https://github.com/zsh-users/zsh-autosuggestions <span class="variable">$&#123;ZSH_CUSTOM:-~/.oh-my-zsh/custom&#125;</span>/plugins/zsh-autosuggestions</span><br></pre></td></tr></table></figure>
<p><a target="_blank" rel="noopener" href="https://github.com/ggreer/the_silver_searcher">the_silver_searcher</a>: 快速的代码命令行搜索工具 ag</p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/yucicheung/article/details/80058338">tmux</a>: 终端分屏工作（目前少用）</p>
<p><a target="_blank" rel="noopener" href="https://github.com/tmux-python/tmuxp">tmuxp</a>: 终端分屏工作（目前未用）</p>
<p><a target="_blank" rel="noopener" href="https://github.com/wting/autojump">autojump</a>: 快速跳转目录</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;. /usr/share/autojump/autojump.sh&#x27;</span> &gt;&gt; ~/.bashrc</span><br><span class="line"><span class="built_in">source</span> ~/.bashrc</span><br></pre></td></tr></table></figure>
<p><a target="_blank" rel="noopener" href="https://github.com/junegunn/fzf">fzf</a>: 终端命令行模糊查询历史</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get install fzf</span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;[ -f ~/.fzf.bash ] &amp;&amp; source ~/.fzf.bash&#x27;</span> &gt;&gt; ~/.bashrc</span><br><span class="line"><span class="built_in">source</span> ~/.bashrc</span><br></pre></td></tr></table></figure>
<p><a target="_blank" rel="noopener" href="https://github.com/tldr-pages/tldr">tldr</a>: TLDR 页的 GitHub 仓库将其描述为简化的、社区驱动的手册页集合。too long didn’t read</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo npm install -g tldr</span><br><span class="line">sudo pip3 install tldr</span><br></pre></td></tr></table></figure>
<p><a target="_blank" rel="noopener" href="https://github.com/jakubroztocil/httpie">httpie</a>: HTTPie 是一个 HTTP 的命令行客户端<br>~/.bashrc 文件末尾追加内容</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">alias</span> jev3=<span class="string">&#x27;cd ~/humble/ev345/ &amp;&amp; ctags -R package/libevpower/ package/chrgrserv/ package/dashboard/&#x27;</span></span><br><span class="line"><span class="built_in">alias</span> jcs=<span class="string">&#x27;cd ~/humble/ev345/package/chrgrserv/src/&#x27;</span></span><br><span class="line"><span class="built_in">alias</span> jlev=<span class="string">&#x27;cd ~/humble/ev345/package/libevpower/src/&#x27;</span></span><br><span class="line"><span class="built_in">alias</span> jblog=<span class="string">&#x27;cd ~/humble/blog/source/_posts/&#x27;</span></span><br><span class="line"><span class="built_in">alias</span> jtools=<span class="string">&#x27;cd ~/humble/tools/ &amp;&amp; . venv/bin/activate&#x27;</span></span><br><span class="line">. /usr/share/autojump/autojump.sh</span><br><span class="line">[ -f ~/.fzf.bash ] &amp;&amp; <span class="built_in">source</span> ~/.fzf.bash</span><br></pre></td></tr></table></figure>
<h3 id="python"><a href="#python" class="headerlink" title="python"></a>python</h3><p><a target="_blank" rel="noopener" href="https://github.com/joh/when-changed">when-changed</a>: 监控文件变动并且执行命令</p>
<p>ipdb:pip3 install ipdb</p>
<p>删除启动项:sudo efibootmgr -b 0001 -B</p>
<h2 id="ubuntu16-04和win时间不同步"><a href="#ubuntu16-04和win时间不同步" class="headerlink" title="ubuntu16.04和win时间不同步"></a>ubuntu16.04和win时间不同步</h2><p>先在ubuntu下更新一下时间，确保时间无误：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get install ntpdate</span><br><span class="line">sudo ntpdate time.windows.com</span><br></pre></td></tr></table></figure>
<p>然后将时间更新到硬件上：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo hwclock --localtime --systohc</span><br></pre></td></tr></table></figure>
<p>重新进入windows10，发现时间恢复正常了！</p>

        
        <br />
        <div id="comment-container">
        </div>
        <div id="disqus_thread"></div>

        <div id="lv-container">
        </div>

    </div>
</div>

    </div>
</div>


<footer class="footer">
    <ul class="list-inline text-center">
        
        

        

        

        

        

    </ul>
    
    <p>
        <span id="busuanzi_container_site_pv">
            <span id="busuanzi_value_site_pv"></span>PV
        </span>
        <span id="busuanzi_container_site_uv">
            <span id="busuanzi_value_site_uv"></span>UV
        </span>
        Created By <a target="_blank" rel="noopener" href="https://hexo.io/">Hexo</a>  Theme <a target="_blank" rel="noopener" href="https://github.com/aircloud/hexo-theme-aircloud">AirCloud</a></p>
</footer>




</body>

<script>
    // We expose some of the variables needed by the front end
    window.hexo_search_path = "search.json"
    window.hexo_root = "/"
    window.isPost = true
</script>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>

<script src="/js/index.js"></script>

<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>




</html>
